
export interface Finaly_Sum {
  r: number;
  r_h: number;
  y: number;
  y_h: number;
  g: number;
  g_h: number
}

export interface Where_Use {
  customer_list: string[]
}

export type Flag = 'Y' | 'N';
export type RYG = 'R' | 'Y' | 'G';
export interface Item_Where_Use {
  [k: string] : string[]
}

export interface Shortage_Data_Item {
  item: string;
  item_desc: string;
  lead_time: number;
  service_mode: string; service_mode_desc: string;
  supply_type: string; supply_phase: string[]; supply_phase_desc: string[];
  vendor_item: string;
  comp_type1: string; comp_type2: string;
  risk_item_flag: Flag; item_ryg: RYG; final_ryg: RYG;
  buyer_critical_item: null | string;
  comfirmed_flag: Flag; maintained_note_type_flag: Flag;
  buyer_view_flag: Flag; full_alt_flag: Flag;
  balance: string[],
  whereUse: Item_Where_Use
}

export interface Shortage_Item_Response {
  bucket: number[];
  my_note_total: number;
  critical_total: number;
  finaly_sum: Finaly_Sum;
  where_use: Where_Use;
  data: Shortage_Data_Item[]
}

